export const rules = {
  name: [
    {
      required: true,
      message: '用户名是必传的！',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9A-Z$]{3,10}$/,
      message: '请输入3-10个字符',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '密码是必传的！',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9A-Z]{6,10}$/,
      message: '请输入6-10个字符',
      trigger: 'blur'
    }
  ]
}
